package com.zzb.projectfactory.framework.param.entity;

import com.zzb.projectfactory.framework.autodoc.annotation.AutoDocField;
import com.zzb.projectfactory.framework.common.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
* 系统配置表 实体类
*/
@Table(name = "sys_param")
@Entity
public class SysParam extends BaseEntity {
    @Column(name = "param_name")
    @AutoDocField(value = "配置名")
    private String paramName; //配置名
    @Column(name = "data_type")
    @AutoDocField(value = "数据类型")
    private String dataType; //数据类型
    @Column(name = "param_value")
    @AutoDocField(value = "值")
    private String paramValue; //值

    /*----------------------get set 方法----------------------*/
    public String getParamName() {return paramName;}
    public void setParamName(String paramName){this.paramName = paramName == null ? null : paramName.trim();}
    public String getDataType() {return dataType;}
    public void setDataType(String dataType){this.dataType = dataType == null ? null : dataType.trim();}
    public String getParamValue() {return paramValue;}
    public void setParamValue(String paramValue){this.paramValue = paramValue == null ? null : paramValue.trim();}
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "SysParam{" +
        "id='" + getId() + '\'' + ',' + 
        "paramName='" + getParamName() + '\'' + ',' + 
        "dataType='" + getDataType() + '\'' + ',' + 
        "paramValue='" + getParamValue() + '\'' + ',' + 
        "createTime='" + getCreateTime() + '\'' + ',' + 
        "creator='" + getCreator() + '\'' + ',' + 
        "updateTime='" + getUpdateTime() + '\'' + ',' + 
        "updater='" + getUpdater() + '\'' + ',' + 
        "activate='" + getActivate() + '\'' + 
        '}';
    }
}
